Retrieving URL components bug fix