Fixed issues with getting tacts for pwm