Hi,
For 20MHz operation you need to set the HS_OSC option. If you're using PBP3 then try

#CONFIG
__config _HS_OSC & _WDT_ON & _MCLRE_ON & _LVP_OFF & _CP_OFF
#ENDCONFIG

/Henrik.