Try to fix PWM bugs