Fixed issue where pwm module's event was never updated