Index: /branches/pap/psModules/src/imcombine/pmSubtractionEquation.c
===================================================================
--- /branches/pap/psModules/src/imcombine/pmSubtractionEquation.c	(revision 26717)
+++ /branches/pap/psModules/src/imcombine/pmSubtractionEquation.c	(revision 26718)
@@ -1630,5 +1630,5 @@
             for (int y = - footprint; y <= footprint; y++) {
                 for (int x = - footprint; x <= footprint; x++) {
-                    residual->kernel[y][x] += background + source->kernel[y][x] * norm - target->kernel[y][x];
+                    residual->kernel[y][x] += background + kernels->norm->kernel[y][x] * norm - target->kernel[y][x];
                 }
             }
@@ -1667,5 +1667,5 @@
             for (int y = - footprint; y <= footprint; y++) {
                 for (int x = - footprint; x <= footprint; x++) {
-                    residual->kernel[y][x] += background + image1->kernel[y][x] * norm - image2->kernel[y][x];
+                    residual->kernel[y][x] += background + kernels->norm->kernel[y][x] * norm - image2->kernel[y][x];
                 }
             }
