fix wrong variable use in parse_url