fix latency problem