Fix URL parsing