Fix `dequeue`.