Index: trunk/psphot/src/psphotReplaceUnfit.c
===================================================================
--- trunk/psphot/src/psphotReplaceUnfit.c	(revision 38554)
+++ trunk/psphot/src/psphotReplaceUnfit.c	(revision 38556)
@@ -357,4 +357,5 @@
 	// regenerate the PSF if the model is a PSF, or if we need the PSF for a PCM
 	if (isPSF || model->isPCM) {
+            if (!source->modelPSF) continue;
 	    // the guess central intensity comes from the peak:
 	    float Io = source->peak->rawFlux;
