Fixed switching gcode bug