Index: trunk/ppMerge/src/ppMergeScaleZero.c
===================================================================
--- trunk/ppMerge/src/ppMergeScaleZero.c	(revision 8847)
+++ trunk/ppMerge/src/ppMergeScaleZero.c	(revision 9325)
@@ -159,5 +159,5 @@
     psImage *background = psImageAlloc(data->numCells, filenames->n, PS_TYPE_F32); // Background measurements
     psImageInit(background, NAN);
-    psStats *bgStats = psStatsAlloc(options->background); // Statistic to measure the background
+    psStats *bgStats = psStatsAlloc(options->mean); // Statistic to measure the background
     psVector *gains = NULL;             // The gains for each cell
     psImage *exptime = NULL;            // The exposure time for each integration of each cell
@@ -265,5 +265,5 @@
                     psFree(sample);
                     psFree(sampleMask);
-                    background->data.F32[i][cellNum] = getStat(bgStats, options->background);
+                    background->data.F32[i][cellNum] = getStat(bgStats, options->mean);
                     psTrace(__func__, 3, "Background for %s, cell %d is %f\n", name, cellNum,
                             background->data.F32[i][cellNum]);
