Index: /branches/eam_02_branch/psphot/src/psphotChoosePSF.c
===================================================================
--- /branches/eam_02_branch/psphot/src/psphotChoosePSF.c	(revision 12958)
+++ /branches/eam_02_branch/psphot/src/psphotChoosePSF.c	(revision 12959)
@@ -239,7 +239,7 @@
 
 	    // set the mask and subtract the PSF model
-	    psImageKeepCircle (source->mask, x, y, RADIUS, "OR", PM_MASK_MARK);
-	    pmModelSub (source->pixels, source->mask, source->modelPSF, PM_MODEL_OP_FULL);
-	    psImageKeepCircle (source->mask, x, y, RADIUS, "AND", PS_NOT_U8(PM_MASK_MARK));
+	    psImageKeepCircle (source->maskObj, x, y, RADIUS, "OR", PM_MASK_MARK);
+	    pmModelSub (source->pixels, source->maskObj, source->modelPSF, PM_MODEL_OP_FULL);
+	    psImageKeepCircle (source->maskObj, x, y, RADIUS, "AND", PS_NOT_U8(PM_MASK_MARK));
 	}
 
