Index: trunk/ppImage/src/ppImageLoop.c
===================================================================
--- trunk/ppImage/src/ppImageLoop.c	(revision 27556)
+++ trunk/ppImage/src/ppImageLoop.c	(revision 28043)
@@ -196,4 +196,11 @@
         }
 
+	if (options->doMaskStats) {
+	  //if (!ppImageMaskStats(config, view, options)) {
+	  if (!ppImageMaskStats(config, view, stats)) {
+	    ESCAPE("Unable to do Mask stats");
+	  }
+	}
+	
         // these may be used by ppImageSubtractBackground.
         // if these are defined as internal files, drop them here
@@ -252,5 +259,5 @@
         ppImageFileCheck(config);
     }
-
+    
     // Calculate summary statistics from FPA Metadata
     if (!ppImageMetadataStats(config, stats, options)) {
