pwm fix