fix for NPE.  also changed G01 to G00.