diff --git a/core/includes/module.inc b/core/includes/module.inc
index b099a558aa46d9d0decc45e8f5fc750ea1d9b183..bc913112c259ff00f2d070643f2e8d39e07e5c95 100644
--- a/core/includes/module.inc
+++ b/core/includes/module.inc
@@ -344,9 +344,6 @@ function module_enable($module_list, $enable_dependencies = TRUE) {
       // Flush theme info caches, since (testing) modules can implement
       // hook_system_theme_info() to register additional themes.
       system_list_reset();
-      // Refresh the list of modules that implement bootstrap hooks.
-      // @see bootstrap_hooks()
-      _system_update_bootstrap_status();
 
       // Update the kernel to include it.
       // This reboots the kernel to register the module's bundle and its
@@ -358,6 +355,10 @@ function module_enable($module_list, $enable_dependencies = TRUE) {
         $kernel->updateModules($module_filenames, $module_filenames);
       }
 
+      // Refresh the list of modules that implement bootstrap hooks.
+      // @see bootstrap_hooks()
+      _system_update_bootstrap_status();
+
       // Refresh the schema to include it.
       drupal_get_schema(NULL, TRUE);
       // Update the theme registry to include it.