Restoring original undo event handler