fix ondemand latency