Index: trunk/psphot/src/psphotBlendFit.c
===================================================================
--- trunk/psphot/src/psphotBlendFit.c	(revision 19869)
+++ trunk/psphot/src/psphotBlendFit.c	(revision 19881)
@@ -55,13 +55,11 @@
 
         // limit selection to some SN limit
-        // XXX this should use peak?
-        if (source->moments == NULL) continue;
-        if (source->moments->SN < FIT_SN_LIM) continue;
+        if (source->peak->SN < FIT_SN_LIM) continue;
 
         // XXX this should use peak?
-        if (source->moments->x < AnalysisRegion.x0) continue;
-        if (source->moments->y < AnalysisRegion.y0) continue;
-        if (source->moments->x > AnalysisRegion.x1) continue;
-        if (source->moments->y > AnalysisRegion.y1) continue;
+        if (source->peak->xf < AnalysisRegion.x0) continue;
+        if (source->peak->yf < AnalysisRegion.y0) continue;
+        if (source->peak->xf > AnalysisRegion.x1) continue;
+        if (source->peak->yf > AnalysisRegion.y1) continue;
 
         // if model is NULL, we don't have a starting guess
@@ -95,5 +93,5 @@
 	    if (psphotFitBlob (readout, source, sources, psf, maskVal, markVal)) {
 		source->type = PM_SOURCE_TYPE_EXTENDED;
-		psTrace ("psphot", 5, "source at %7.1f, %7.1f is ext", source->moments->x, source->moments->y);
+		psTrace ("psphot", 5, "source at %7.1f, %7.1f is ext", source->peak->xf, source->peak->yf);
 		Next ++;
 		continue;
@@ -102,5 +100,5 @@
 	    if (psphotFitBlend (readout, source, psf, maskVal, markVal)) {
 		source->type = PM_SOURCE_TYPE_STAR;
-		psTrace ("psphot", 5, "source at %7.1f, %7.1f is psf", source->moments->x, source->moments->y);
+		psTrace ("psphot", 5, "source at %7.1f, %7.1f is psf", source->peak->xf, source->peak->yf);
 		Npsf ++;
 		continue;
@@ -108,5 +106,5 @@
 	}
 
-        psTrace ("psphot", 5, "source at %7.1f, %7.1f failed", source->moments->x, source->moments->y);
+        psTrace ("psphot", 5, "source at %7.1f, %7.1f failed", source->peak->xf, source->peak->yf);
         Nfail ++;
 
