Tables copied correctly for undo/redo actions...

where tables are copied. Problem is in counter for loading tables.