Fix URL creation.