fix latency issue