fix pwm framework