Duty cycle not working