PWM fix