bugfix for connect hosts_map