diff --git a/xmlsitemap_menu/xmlsitemap_menu.module b/xmlsitemap_menu/xmlsitemap_menu.module
index 9b03b5b..d869d2a 100644
--- a/xmlsitemap_menu/xmlsitemap_menu.module
+++ b/xmlsitemap_menu/xmlsitemap_menu.module
@@ -98,6 +98,9 @@ function xmlsitemap_menu_xmlsitemap_process_menu_links(array $mlids, array $xmls
 
   // Set the global user variable back to the original user.
   xmlsitemap_restore_user();
+
+  // Flush the wrong cached access in Admin module.
+  drupal_static_reset('admin_landing_page_access');
 }
 
 /**
