diff --git a/js/fea/DmaCell.js b/js/fea/DmaCell.js
index 2e2a1ca6945026ad483d395a4aee68a1ae4538ec..fb04ff961dbcf04dd1819ab9e67be12caaf28219 100644
--- a/js/fea/DmaCell.js
+++ b/js/fea/DmaCell.js
@@ -194,11 +194,11 @@ DMACell.prototype.destroy = function(){
 };
 
 DMACell.prototype.toJSON = function(){
-    if (!this.parts) this.parts = this._initParts();
-    return {
-        indices:this.indices,//todo get rid of this and calculate from min and max
-        parts: this.parts
+    var data = {
+        indices:this.indices//todo get rid of this and calculate from min and max
     };
+    if (this.parts) data.parts = this.parts;
+    return data;
 };
 
 ///////////////////////////////////////////////////////////////////////////////////////////////