Fixed bug where fifo queue's behaviour was like a stack.