[DF-3027] - crash while performing Undo is fixed.