What are your config settings i think the osc is not what yoyu think

you need a config fosc=hs in there


with the internal osc
for 4mhz you need a oscon=$60
or $70 for 8 mhz