Fixed a problem: "host:port" would cause wrong host