If you are using a 4Mhz crystal or resonator you need to set the config to
Code:
 XT_OSC not  "HS_OSC"
Give that a try

Dave