fixed vector.length