Fixed a bug in latency service