fix bug in time_client