Index: trunk/psModules/src/imcombine/pmSubtractionMatch.c
===================================================================
--- trunk/psModules/src/imcombine/pmSubtractionMatch.c	(revision 14585)
+++ trunk/psModules/src/imcombine/pmSubtractionMatch.c	(revision 14591)
@@ -335,4 +335,5 @@
             }
 
+            // Put the solution on the metadata
             {
                 psString comment = NULL; // Comment for metadata
@@ -341,4 +342,14 @@
                                     PS_META_DUPLICATE_OK, comment, solution);
                 psFree(comment);
+                if (region) {
+                    psMetadataAddPtr(convolved->analysis, PS_LIST_TAIL, "SUBTRACTION.REGION",
+                                     PS_META_DUPLICATE_OK | PS_DATA_REGION, comment, region);
+                } else {
+                    region = psRegionAlloc(0, numCols, 0, numRows);
+                    psMetadataAddPtr(convolved->analysis, PS_LIST_TAIL, "SUBTRACTION.REGION",
+                                     PS_META_DUPLICATE_OK | PS_DATA_REGION, comment, region);
+                    psFree(region);
+                    region = NULL;
+                }
             }
 
@@ -348,6 +359,8 @@
             // There is data in the readout now
             convolved->data_exists = true;
-            convolved->parent->data_exists = true;
-            convolved->parent->parent->data_exists = true;
+            if (convolved->parent) {
+                convolved->parent->data_exists = true;
+                convolved->parent->parent->data_exists = true;
+            }
         }
     }
