fix to pwm example