Fixing a bug with the sitemapid generation