Fix for problem that caused both HUGE and INVALID latencies to be negative