FIX undo operations after model debugging