Fixes a bug that appeared when cloning a table after another table has been deleted.
It was because after a table was deleted the other tables are renumbered and the number was set to the text element as a numeric value instead of a string and this was causing the clone function on the Text element to fail.