fixed a fifo problem