sanitize undo in tableviews