Correct writing 1 past end of shape_v array in shape member function.