correct the table relation