Fixing sitemap xml generation.  Resolves #527