Fix URL parsing issue