Reregister events when undo/redo is used.