Index: /trunk/ppStack/src/ppStackLoop.c
===================================================================
--- /trunk/ppStack/src/ppStackLoop.c	(revision 18384)
+++ /trunk/ppStack/src/ppStackLoop.c	(revision 18385)
@@ -248,5 +248,5 @@
                 return false;
             }
-            psfs->data[index++] = psMemIncrRefCounter(psf);
+            psfs->data[index] = psMemIncrRefCounter(psf);
             psMetadataRemoveKey(chip->analysis, "PSPHOT.PSF");
 
@@ -278,5 +278,5 @@
                     return NULL;
                 }
-                sources->data[index] = psMemIncrRefCounter(sources);
+                indSources->data[index] = psMemIncrRefCounter(sources);
                 sourceLists = ppStackSourceListAdd(sourceLists, sources, config);
                 if (!sourceLists) {
@@ -290,4 +290,6 @@
                 }
             }
+
+            index++;
         }
         psFree(fileIter);
