fixing PWM