fixing latency