--- Sketch.java 2009-09-19 01:32:33.000000000 -0500 +++ Sketch.new.java 2009-09-19 01:32:27.000000000 -0500 @@ -594,7 +594,8 @@ for (int j = i; j < codeCount-1; j++) { code[j] = code[j+1]; } - codeCount--; + code = (SketchCode[]) PApplet.shorten(code); + codeCount--; return; } }