URL parsing fix