fix new table structure