diff --git a/index_entity.inc b/index_entity.inc
index 745e904..fccabb8 100644
--- a/index_entity.inc
+++ b/index_entity.inc
@@ -176,6 +176,12 @@ class SearchApiIndex extends Entity {
     parent::__construct($values, 'search_api_index');
   }
 
+  public function export($prefix = '') {
+    // Cast exported enabled attribute to int, otherwise the enabled attribute remains permanently overridden.
+    $this->enabled = (int)$this->enabled;
+    return parent::export($prefix);
+  }
+
   /**
    * Execute necessary tasks for a newly created index.
    */
