Fix error generating URL.