Fixes the generated URL