Probably you did something bad somewhere, this PIC use TIMER 2 for HPWM.

Post your whole code here.. unless we can't help.