It still sounds like your getting a power glitch that is affectig the pic. You could also try a larger capacitor parallel to 0.1uF accross the pic and turning off the brownout detect.