Fixing FIFO

Fixing FIFO queue