Fix PWM rewrites.