title: Sharepoint "Global Navigation" links dissapearing after save
body: <p>I added custom xml site template and site was created.</p>
  
  <p>When i am trying to modify default sharepoint navigation on page:
  <strong>/_layouts/AreaNavigationSettings.aspx</strong></p>
  
  <p>Changes for "Global Navigation" cannot be applied. "Global Navigation" folder becomes empty after "ok" button click.</p>
  
  <p>And sometimes nodes in "Current Navigation" become sorted even if proprty set "Sort Manually" ("Current Navigation" can be saved without any problems!)</p>
  
  <p>Whats gooing wrong with navigation???</p>
  
  <p>Web feature:</p>
  
  <pre><code> &lt;Feature ID="541F5F57-C847-4e16-B59A-B31E90E6F9EA"&gt;
        &lt;!-- Per-Web Portal Navigation Properties--&gt;
        &lt;Properties xmlns="http://schemas.microsoft.com/sharepoint/"&gt;
          &lt;Property Key="InheritGlobalNavigation" Value="false"/&gt;
          &lt;Property Key="IncludeSubSites" Value="true"/&gt;
          &lt;Property Key="IncludePages" Value="false"/&gt;
        &lt;/Properties&gt;
      &lt;/Feature&gt;
  </code></pre>
  
  <p>In code configuration:</p>
  
  <pre><code>  if (publishingWeb.Navigation != null)
          {
              publishingWeb.Navigation.OrderingMethod = OrderingMethod.Manual;
              publishingWeb.Navigation.InheritGlobal = true;
              publishingWeb.Navigation.GlobalIncludePages = false;
              publishingWeb.Navigation.GlobalIncludeSubSites = false;
  
              publishingWeb.Navigation.InheritCurrent = false;
              publishingWeb.Navigation.CurrentIncludePages = false;
              publishingWeb.Navigation.CurrentIncludeSubSites = false;
          }
  
          publishingWeb.PagesList.EnableModeration = false;
          publishingWeb.Update();
  </code></pre>
  
  <p>Without this code i am facing same problems! </p>
  
  <p>P.s. Only my site not working. </p>
  
  <p>Unable to retrieve TopNavigationBar SPNavigationNodeCollection from Web at: /Pages/default.aspx. The SPNavigation store is likely corrupt.</p>