Fixed bug with PWM driver