Corrects generated URL