fix setTable Method