fix bug in FIFO.c