fix wait queue