fix latency example