Fix load/save undo/redo case analysis bug