Changed to a method mark_as_taken

gcode->mark_as_taken();
also I have putted on config to false