Index: /trunk/ppStack/src/ppStackMatch.c
===================================================================
--- /trunk/ppStack/src/ppStackMatch.c	(revision 19241)
+++ /trunk/ppStack/src/ppStackMatch.c	(revision 19242)
@@ -117,6 +117,6 @@
         psStringAppend(&weightName, "%s.%d.%s", outName, numInput, tempWeight);
 
-        if (!readImage(&output->image, imageName, config) || !readImage(&output->mask, maskName, config) ||
-            !readImage(&output->weight, weightName, config)) {
+        if (!readImage(&readout->image, imageName, config) || !readImage(&readout->mask, maskName, config) ||
+            !readImage(&readout->weight, weightName, config)) {
             psError(PS_ERR_IO, false, "Unable to read previously produced image.");
             psFree(imageName);
