Fixing bug so the table can be recreated