fixed undo bug in tutorial