Fix potential crash with latency accuracy