latency: fixed wrong return code