Index: /trunk/psModules/src/imcombine/pmStack.c
===================================================================
--- /trunk/psModules/src/imcombine/pmStack.c	(revision 20711)
+++ /trunk/psModules/src/imcombine/pmStack.c	(revision 20712)
@@ -8,6 +8,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.44 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2008-11-01 02:59:33 $
+ *  @version $Revision: 1.45 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2008-11-13 03:50:30 $
  *  Copyright 2004-2007 Institute for Astronomy, University of Hawaii
  *
@@ -353,11 +353,11 @@
                   float rej2 = PS_SQR(rej); // Rejection level squared
                   for (int i = 0; i < num; i++) {
-                      pixelVariances->data.F32[i] *= rej2;
+                      // Systematic error contributes to the rejection level
+                      pixelVariances->data.F32[i] += PS_SQR(sys * pixelData->data.F32[i]);
 #ifdef VARIANCE_FACTORS
                       // Variance factor contributes to the rejection level
                       pixelVariances->data.F32[i] *= varFactors->data.F32[pixelSources->data.U16[i]];
 #endif
-                      // Systematic error contributes to the rejection level
-                      pixelVariances->data.F32[i] += PS_SQR(sys * pixelData->data.F32[i]);
+                      pixelVariances->data.F32[i] *= rej2;
                   }
               }
