Index: trunk/ppMerge/src/ppMergeBackground.c
===================================================================
--- trunk/ppMerge/src/ppMergeBackground.c	(revision 7064)
+++ trunk/ppMerge/src/ppMergeBackground.c	(revision 7067)
@@ -4,4 +4,5 @@
 #include <psmodules.h>
 
+#include "ppMerge.h"
 #include "ppMergeBackground.h"
 
@@ -150,5 +151,5 @@
 
                     // Get the background
-                    psImageStats(bgStats, image, readout->mask, options->maskVal);
+                    psImageStats(bgStats, image, readout->mask, options->combine->maskVal);
                     background->data.F64[i][cellNum] = getStat(bgStats, options->background);
                 }
