small changes on fifo to improve synchronous read