fixed error with fifo