fixed crashes caused by changes in pwm_wrap_module