fix pwm initial state