fixes #2157 - used_ids should not pass hosts array