Fix regression in sitemap, added test