Fixed check for looping host.