fix bug in table