Fixed the PWM mode