fix the table representation