fixed min/max in construction of tensor expression