Index: trunk/psphot/src/psphotSourceMatch.c
===================================================================
--- trunk/psphot/src/psphotSourceMatch.c	(revision 31154)
+++ trunk/psphot/src/psphotSourceMatch.c	(revision 32348)
@@ -48,11 +48,7 @@
     pmDetections *detections = psMetadataLookupPtr (&status, readout->analysis, "PSPHOT.DETECTIONS");
     psAssert (detections, "missing detections?");
-    psAssert (detections->newSources, "new sources not defined?");
-    psAssert (!detections->allSources, "all sources already defined?");
-
-    // XXX TEST:
-    if (detections->newSources) {
-        psphotMatchSourcesToObjects(objects, detections->newSources, RADIUS);
-    }
+    psAssert (detections->allSources, "all sources not defined?");
+
+    psphotMatchSourcesToObjects(objects, detections->allSources, RADIUS);
 
     return true;
@@ -261,5 +257,5 @@
 	    peak->assigned = true;
 	    pmPhotObjAddSource(obj, source);
-	    psArrayAdd (detections->newSources, 100, source);
+	    psArrayAdd (detections->allSources, 100, source);
 	    psFree (source);
 	}
