fix bug in table editor