size()-1

correction dimension of vector : size()-1