Made the queue FIFO (it was LIFO before)