Fixing of enqueuing and dequeuing.