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

... the number of hostnames.