Fix vector subscript out of range

Make Microsoft Visual C++ 2013 happy.