fixed the reading back of vector data types