fixed vector "subscript out of range crash" (msvc)