Buf fix on PWM