Fixed the latency compensation that was broken