Index: /branches/pap_branch_080320/ppMerge/src/ppMergeMask.c
===================================================================
--- /branches/pap_branch_080320/ppMerge/src/ppMergeMask.c	(revision 17177)
+++ /branches/pap_branch_080320/ppMerge/src/ppMergeMask.c	(revision 17178)
@@ -246,6 +246,4 @@
         }
 
-        outRO->data_exists = outCell->data_exists = outChip->data_exists = true;
-
         if (writeOut) {
             if (!pmFPAfileIOChecks(config, outView, PM_FPA_BEFORE)) {
@@ -253,4 +251,6 @@
                 goto MERGE_MASK_ERROR;
             }
+
+            outRO->data_exists = outCell->data_exists = outChip->data_exists = true;
 
             // Average concepts
@@ -289,5 +289,4 @@
             }
         }
-        psFree(outRO);
     }
     psFree(outView);
@@ -344,5 +343,5 @@
         goto PPMERGE_MASK_ERROR;
     }
-    if (!ppMergeFileActivate(config, PPMERGE_FILES_OUTPUT, false)) {
+    if (!ppMergeFileActivate(config, PPMERGE_FILES_OUTPUT, true)) {
         psError(PS_ERR_UNKNOWN, false, "Unable to activate files.");
         goto PPMERGE_MASK_ERROR;
