Fixed URL parsing issue