sphinx fixing logic for sitemap generation