Made sure the vector is cleared before it's filled, when trying to read values into a vector.