diff --git a/context.install b/context.install
index 3d2e2f6..e8327b2 100644
--- a/context.install
+++ b/context.install
@@ -289,6 +289,10 @@ function context_update_6304() {
 
 function context_update_7000() {
   $updated = array();
+
+  // Needed when upgrading from D6
+  drupal_load('module', 'context');
+
   $contexts = context_load(NULL, TRUE);
   foreach ($contexts as $c) {
     // if the old data is in the old reaction and the new reaction hasn't been saved, migrate the old data to the new reaction
diff --git a/context.module b/context.module
index 637ffd8..1ef8c59 100644
--- a/context.module
+++ b/context.module
@@ -192,6 +192,9 @@ function context_init() {
  *   Returns a fully-loaded context definition.
  */
 function context_load($name = NULL, $reset = FALSE) {
+  // Needed when upgrading from D6
+  drupal_load('module', 'ctools');
+
   ctools_include('export');
   static $contexts;
   static $altered;
