Fix a bug in the BRAM FIFO.