fixup undo table