fix the tables