fix dequeue