fix bug in table format