Index: /branches/eam_branches/ipp-20110710/psphot/src/psphotFitSourcesLinear.c
===================================================================
--- /branches/eam_branches/ipp-20110710/psphot/src/psphotFitSourcesLinear.c	(revision 31987)
+++ /branches/eam_branches/ipp-20110710/psphot/src/psphotFitSourcesLinear.c	(revision 31988)
@@ -190,4 +190,5 @@
         pmModel *model = pmSourceGetModel (&isPSF, source);
 
+	// clear the 'mark' pixels and remask on the fit aperture 
         psImageMaskPixels (source->maskObj, "AND", PS_NOT_IMAGE_MASK(markVal));
         psImageKeepCircle (source->maskObj, source->peak->x, source->peak->y, model->fitRadius, "OR", markVal);
@@ -348,4 +349,7 @@
         model->params->data.F32[PM_PAR_I0] = norm->data.F32[i];
         model->dparams->data.F32[PM_PAR_I0] = errors->data.F32[i];
+
+	// clear the 'mark' pixels so the subtraction covers the full window
+        psImageMaskPixels (source->maskObj, "AND", PS_NOT_IMAGE_MASK(markVal));
 
         // subtract object
