Fixed a bug regarding parse_url