               }
               JName.some selector, option, (err, names)=>
                 urls = (name.name for name in names) 
-                sitemapName =  @generateSitemapName skip
+                sitemapName =  @generateSitemapName groupPageNumber, skip
                 content = @generateSitemapString urls
                 @saveSitemap sitemapName, content
 
                 groupQueue.sitemapNames or= []
-                groupQueue.sitemapNames.push sitemapName + ".xml"
+                groupQueue.sitemapNames.push sitemapName
                 queue.next()
             queue.push => groupQueue.next()
             daisy queue

        sitemap += "<url><loc>#{@options.uri.address}/#!/#{url}</loc></url>"
    sitemap += sitemapFooter

  generateSitemapName: (skip)->
    return  "sitemap_" + skip + "_" + (skip + NAMEPERPAGE)

  saveSitemap: (name, content)->
    {JSitemap} = @bongo.models

  generate:=>
    {JName, JGroup, JSitemap} = @bongo.models

    groupSelector = {
      privacy:'public'
    }
