fixed assertion failure (vector out of range) for the 'vc10,debug' build (#2775)
Merge pull request #455 from AlexeySpizhevoy:2.4