Fixed issues with blank hosts.