What is the duration of this reset, if it is reset?

You may add a PAUSE 1000 at the beggining of the program and see if this duration is increased. This will confirm that PIC is indeed reseting.

Ioannis