Fix ts_vector behaviour