fixed assertion failure (vector out of range) for the 'vc10,debug' build (#2775)