Fixed one source of index out of range in MSVC builds.