fixed pwm problem