Fix url parsing error