This is extremely strange.

If you have other 18F series chip, can you try it also?

Then maybe on support.melabs.com forum, Charles can see if this is a 18F specific bug.

Can you post your test code to have a look?

Ioannis