Index: branches/eam_branches/psphot.stack.20100120/src/psphotFindDetections.c
===================================================================
--- branches/eam_branches/psphot.stack.20100120/src/psphotFindDetections.c	(revision 26688)
+++ branches/eam_branches/psphot.stack.20100120/src/psphotFindDetections.c	(revision 26691)
@@ -12,5 +12,5 @@
     psAssert (recipe, "missing recipe?");
 
-    int num = psMetadataAddS32 (&status, config->arguments, "PSPHOT.INPUT.NUM");
+    int num = psMetadataLookupS32 (&status, config->arguments, "PSPHOT.INPUT.NUM");
     psAssert (status, "programming error: must define PSPHOT.INPUT.NUM");
 
@@ -54,5 +54,5 @@
 	
 	// save detections on the readout->analysis
-	if (!psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSPHOT.DETECTIONS", PS_DATA_PTR, "psphot detectinos", detections)) {
+	if (!psMetadataAddPtr (readout->analysis, PS_LIST_TAIL, "PSPHOT.DETECTIONS", PS_META_REPLACE | PS_DATA_UNKNOWN, "psphot detectinos", detections)) {
 	    psError (PSPHOT_ERR_CONFIG, false, "problem saving detections on readout");
 	    return false;
