Undo/redo works for table copy items, bug...

when all items are redone, index error