Index: trunk/psModules/src/imcombine/pmPSFEnvelope.c
===================================================================
--- trunk/psModules/src/imcombine/pmPSFEnvelope.c	(revision 29004)
+++ trunk/psModules/src/imcombine/pmPSFEnvelope.c	(revision 29543)
@@ -380,6 +380,5 @@
 
         // measure the source moments: tophat windowing, no pixel S/N cutoff
-        // XXX probably should be passing the maskVal to this function so we can pass it along here...
-        if (!pmSourceMoments(source, maxRadius, 0.0, 1.0, maskVal)) {
+        if (!pmSourceMoments(source, maxRadius, 0.0, 0.0, maskVal)) {
             // Can't do anything about it; limp along as best we can
             psErrorClear();
