Index: trunk/psphot/src/pspsf.c
===================================================================
--- trunk/psphot/src/pspsf.c	(revision 4216)
+++ trunk/psphot/src/pspsf.c	(revision 4251)
@@ -46,6 +46,10 @@
 }
 
-pmPSF_Test *pmPSF_TestModel (psArray *sources, char *modelName, float RADIUS) {
+pmPSF_Test *pmPSF_TestModel (psArray *sources, char *modelName, float RADIUS) 
+{
   
+    float x;
+    float y;
+    bool status;
     int Nflt = 0;
     int Npsf = 0;
@@ -102,8 +106,10 @@
 	}
 	psModel  *modelPSF = psModelFromPSF (modelFLT, test->psf); // set shape for this model
-
-	psImageKeepCircle (source->mask, RADIUS, OR, 0x80);
+	x = source->peak->x;
+	y = source->peak->y;
+
+	psImageKeepCircle (source->mask, x, y, RADIUS, OR, 0x80);
 	status = pmSourceFitModel (source, modelPSF, true);
-	psImageKeepCircle (source->mask, RADIUS, AND, 0x7f);
+	psImageKeepCircle (source->mask, x, y, RADIUS, AND, 0x7f);
 
 	// skip poor fits
