fix an issue in the building of the table