Index: trunk/ppSub/src/ppSubCamera.c
===================================================================
--- trunk/ppSub/src/ppSubCamera.c	(revision 29937)
+++ trunk/ppSub/src/ppSubCamera.c	(revision 29954)
@@ -418,5 +418,5 @@
         if (data->forcedPhot1) {
 	    // this pmFPAfile is used to carry sources detected in the positive image #1
-            pmFPAfile *posSources1 = defineOutputFile(config, output, true, "PPSUB.POS1.SOURCES", PM_FPA_FILE_CMF);
+            pmFPAfile *posSources1 = defineOutputFile(config, input, true, "PPSUB.POS1.SOURCES", PM_FPA_FILE_CMF);
             if (!posSources1) {
                 psError(psErrorCodeLast(), false, "Unable to set up forced source file.");
@@ -426,5 +426,5 @@
 
 	    // this pmFPAfile is used to carry sources detected in the diff image @ the positions from positive image #1
-            pmFPAfile *frcSources1 = defineOutputFile(config, output, true, "PPSUB.FORCED1.SOURCES", PM_FPA_FILE_CMF);
+            pmFPAfile *frcSources1 = defineOutputFile(config, input, true, "PPSUB.FORCED1.SOURCES", PM_FPA_FILE_CMF);
             if (!frcSources1) {
                 psError(psErrorCodeLast(), false, "Unable to set up forced source file.");
@@ -436,5 +436,5 @@
         if (data->forcedPhot2) {
 	    // this pmFPAfile is used to carry sources detected in the positive image #2
-            pmFPAfile *posSources2 = defineOutputFile(config, inverse, true, "PPSUB.POS2.SOURCES", PM_FPA_FILE_CMF);
+            pmFPAfile *posSources2 = defineOutputFile(config, ref, true, "PPSUB.POS2.SOURCES", PM_FPA_FILE_CMF);
             if (!posSources2) {
                 psError(psErrorCodeLast(), false, "Unable to set up forced source file.");
@@ -444,5 +444,5 @@
 
 	    // this pmFPAfile is used to carry sources detected in the diff image @ the positions from positive image #2
-            pmFPAfile *frcSources2 = defineOutputFile(config, inverse, true, "PPSUB.FORCED2.SOURCES", PM_FPA_FILE_CMF);
+            pmFPAfile *frcSources2 = defineOutputFile(config, ref, true, "PPSUB.FORCED2.SOURCES", PM_FPA_FILE_CMF);
             if (!frcSources2) {
                 psError(psErrorCodeLast(), false, "Unable to set up forced source file.");
