Fixed bug when adding new table structure