fix a defect for host identification if there is no port number