PWM fix attempt