fix set_items when use.table=TRUE