possible bug fix for latency <= 0 error