bugfix for parse_hostport