Fixed bug in PWM code
Just a change