Fix a stupid bug of deleting '-' characters from hostnames.