fixed dequeuing of pwm items