removing invalid GCode commands that kills the printer