Index: trunk/psphot/src/psphotFitSourcesLinear.c
===================================================================
--- trunk/psphot/src/psphotFitSourcesLinear.c	(revision 34266)
+++ trunk/psphot/src/psphotFitSourcesLinear.c	(revision 34274)
@@ -210,4 +210,10 @@
 	// psAssert (source->peak->footprint, "peak without footprint??");
 
+        if (final) {
+            if (source->tmpFlags & PM_SOURCE_TMPF_SUBTRACTED) continue;
+        } else {
+            // if (source->mode & PM_SOURCE_MODE_BLEND) continue;
+        }
+
         // turn this bit off and turn it on again if we pass this test
         source->mode &= ~PM_SOURCE_MODE_LINEAR_FIT;
@@ -227,10 +233,4 @@
 	    Nsat ++;
 	}
-
-        if (final) {
-            if (source->tmpFlags & PM_SOURCE_TMPF_SUBTRACTED) continue;
-        } else {
-            // if (source->mode & PM_SOURCE_MODE_BLEND) continue;
-        }
 
         // generate model for sources without, or skip if we can't
