fix TupleSet allocation