fixed errors when generating sitemap urls