Sitemapindex variable cleared after storing