Fixed a bug that prevented sitemaps from being generated correctly