Try adding ...
Code:
DEFINE OSCCAL_1K 1
when using the internal OSC.