diff --git includes/theme.inc includes/theme.inc
index 3f5a0e9..37fe811 100644
--- includes/theme.inc
+++ includes/theme.inc
@@ -585,6 +585,7 @@ function list_themes($refresh = FALSE) {
     }
     else {
       // Scan the installation when the database should not be read.
+      print_r(debug_backtrace());
       $themes = _system_rebuild_theme_data();
     }
 
diff --git includes/update.inc includes/update.inc
index 70861a6..bb4a832 100644
--- includes/update.inc
+++ includes/update.inc
@@ -542,6 +542,7 @@ function update_fix_d7_requirements() {
        ),
       'primary key' => array('value'),
     );
+    db_drop_table('sequences');
     db_create_table('sequences', $schema['sequences']);
     // Initialize the table with the maximum current increment of the tables
     // that will rely on it for their ids.
