Fixed the connection amount when validating hosts.