Fifo overflow fix