Fixing behavior where the number of port numbers passed in doesn't match...

Fixing behavior where the number of port numbers passed in doesn't match the number of hostnames.