fix check_hosts return