Fixed the PWM issue