What version of PBP are you using. There were some issues with odd number eeprom locations being misread on the 18Fxxxx series chips. PBP 2.44 and later corrected this issue.

Also you do have a pull-down on portb.2 do you not? I floating input can cause very unpredictable results.