Index: /trunk/ppMerge/src/ppMergeCombine.c
===================================================================
--- /trunk/ppMerge/src/ppMergeCombine.c	(revision 13879)
+++ /trunk/ppMerge/src/ppMergeCombine.c	(revision 13880)
@@ -255,6 +255,6 @@
             }
 
-            // Add MD5 information for cell
             if (readout->image) {
+                // Add MD5 information for cell
                 pmHDU *hdu = pmHDUFromCell(cell); // HDU that owns the cell
                 const char *chipName = psMetadataLookupStr(NULL, chip->concepts, "CHIP.NAME");
@@ -271,18 +271,20 @@
                 psFree(md5string);
                 psFree(headerName);
+
+
+                // Statistics on the merged cell
+                if (data->statsFile) {
+                    if (!data->stats) {
+                        data->stats = psMetadataAlloc();
+                    }
+                    if (!ppStats(data->stats, data->out, view, options->combine->maskVal, config)) {
+                        psError(PS_ERR_UNEXPECTED_NULL, true, "Unable to generate stats for image.\n");
+                        return false;
+                    }
+                }
             }
 
             psFree(readout);            // Drop reference
 
-            // Statistics on the merged cell
-            if (data->statsFile) {
-                if (!data->stats) {
-                    data->stats = psMetadataAlloc();
-                }
-                if (!ppStats(data->stats, data->out, view, options->combine->maskVal, config)) {
-                    psError(PS_ERR_UNEXPECTED_NULL, true, "Unable to generate stats for image.\n");
-                    return false;
-                }
-            }
 
             // We threw away the bias sections --- record this
