overflow in fifo index counter - fixed