url_parts bug fix