bugfix for get_connection_time.