Index: trunk/magic/remove/src/streaksremove.c
===================================================================
--- trunk/magic/remove/src/streaksremove.c	(revision 20699)
+++ trunk/magic/remove/src/streaksremove.c	(revision 20708)
@@ -1349,4 +1349,16 @@
     cellToChip(&chipCoord, sfiles->astrom, cellCoord);
 
+#ifdef notdef
+    // Shouldn't need this but for raw images I'm getting 
+    // x = warpedPixels->numCols for cell xy70 when cell.x = 0
+    // Perhaps cell_x0 should be IMNPIX-1 since IMNPIX is in the 1 based system of the fits
+    // headers
+    if (chipCoord.x < 0 || chipCoord.x >= sfiles->warpedPixels->numCols) {
+        return false;
+    }
+    if (chipCoord.y < 0 || chipCoord.y >= sfiles->warpedPixels->numRows) {
+        return false;
+    }
+#endif
 
     return psImageGet(sfiles->warpedPixels, chipCoord.x, chipCoord.y) ? true : false;
@@ -1532,4 +1544,5 @@
     }
 
+#ifdef NOTYET
     if (psMetadataLookupBool(&status, config->arguments, "REPLACE")) {
         //     swap the instances for the input and output
@@ -1561,11 +1574,10 @@
         }
     }
-    psFree(ourNebServer);
+#endif  // REPLACE, REMOVE
+    nebServer(ourNebServer);
     psFree(config);
     pmConceptsDone();
     pmConfigDone();
     psLibFinalize();
-#ifdef notyet
-#endif
 
     //  PAU
