fixed bug in latency not being calculated in FIFO