fix possible crash in undo redo accidentals