fixed return value of parse_url.