Fixing read(vector<type>)