Index: branches/eam_branches/relphot.20210521/src/MagResidSave.c
===================================================================
--- branches/eam_branches/relphot.20210521/src/MagResidSave.c	(revision 41606)
+++ branches/eam_branches/relphot.20210521/src/MagResidSave.c	(revision 41608)
@@ -233,5 +233,5 @@
     // apply that offset as well here for this image (in other words, each detection is
     // being compared to the model, excluding the zero point, Mcal.  The model includes
-    // the flat-correction.  NOTE the sign of Mflat (Image.Mcal = Measure.Mcal - Mflat)
+    // the flat-correction.  NOTE the sign of Mflat (Image.Mcal = Measure.Mcal + Mflat)
 
     float Mflat = getMflat (m, c, catalog);
@@ -248,5 +248,5 @@
     if (isnan(MsysPSF)) continue;
 
-    float Moff = Mcal + Mmos + Mgrp + Mgrid - Mflat;
+    float Moff = Mcal + Mmos + Mgrp + Mgrid + Mflat;
 
     // Mrel is the true average apparent magnitude of this star
