Index: trunk/psModules/src/imcombine/pmStackReject.c
===================================================================
--- trunk/psModules/src/imcombine/pmStackReject.c	(revision 19482)
+++ trunk/psModules/src/imcombine/pmStackReject.c	(revision 20420)
@@ -38,4 +38,5 @@
                                                               xMin + size + 1, yMin + size + 1); // Polynomial
     int box = p_pmSubtractionBadRadius(NULL, kernels, polyValues, false, poorFrac); // Radius of bad box
+    psTrace("psModules.imcombine", 10, "Growing by %d", box);
     psFree(polyValues);
 
@@ -69,5 +70,13 @@
         }
         psFree(convolved);
-    }
+    } else {
+        // Just copy over
+        int numBytes = (xMax - xMin) * PSELEMTYPE_SIZEOF(PS_TYPE_MASK); // Number of bytes to copy
+        for (int yTarget = yMin; yTarget < yMax; yTarget++) {
+            memcpy(&target->data.PS_TYPE_MASK_DATA[yTarget][xMin],
+                   &source->data.PS_TYPE_MASK_DATA[yTarget][xMin], numBytes);
+        }
+    }
+
     return true;
 }
@@ -230,4 +239,5 @@
         }
     }
+    psTrace("psModules.imcombine", 7, "Found %ld bad pixels", bad->n);
 
     // Now, grow the mask to include everything that touches a bad pixel in the convolution
@@ -274,5 +284,5 @@
                         psFree(source);
                         psFree(target);
-                        return false;
+                        return NULL;
                     }
                     psFree(job);
@@ -307,4 +317,5 @@
     psFree(source);
     bad = psPixelsFromMask(bad, target, PM_STACK_MASK_ALL);
+    psTrace("psModules.imcombine", 7, "Total %ld bad pixels", bad->n);
 
     return bad;
