Fix url parsing.