Index: trunk/psphot/src/psphotMergeSources.c
===================================================================
--- trunk/psphot/src/psphotMergeSources.c	(revision 41415)
+++ trunk/psphot/src/psphotMergeSources.c	(revision 41416)
@@ -104,4 +104,8 @@
                 pmSource *source = extCMF->allSources->data[i];
                 source->mode |= PM_SOURCE_MODE_EXTERNAL;
+		source->tmpFlags = 0;
+		// these flags are used to track the state of analysis of the sources, but
+		// at this point, these sources are now effectively new so the flags
+		// should be cleared.
 
                 // the supplied peak flux needs to be re-normalized
@@ -135,4 +139,8 @@
 		// keep the Mx,My values for the centroid.  
                 source->mode |= PM_SOURCE_MODE_EXTERNAL;
+		source->tmpFlags = 0;
+		// these flags are used to track the state of analysis of the sources, but
+		// at this point, these sources are now effectively new so the flags
+		// should be cleared.
 
 		// source->peak->detValue,rawFlux,smoothFlux all set to input flux value which is scaled
@@ -165,4 +173,8 @@
                 pmSource *source = extSourcesTXT->data[i];
                 source->mode |= PM_SOURCE_MODE_EXTERNAL;
+		source->tmpFlags = 0;
+		// these flags are used to track the state of analysis of the sources, but
+		// at this point, these sources are now effectively new so the flags
+		// should be cleared.
 
                 // the supplied peak flux needs to be re-normalized
@@ -253,4 +265,8 @@
       pmSource *newSource = pmSourceCopy(inSource);
       newSource->mode |= PM_SOURCE_MODE_EXTERNAL;
+      newSource->tmpFlags = 0;
+      // these flags are used to track the state of analysis of the sources, but
+      // at this point, these sources are now effectively new so the flags
+      // should be cleared.
       
       // drop the loaded source modelPSF
