Flush FIFO working but dangerous if something wrong (infinite loop)