fix build erro on VS2008
correct wrong array size on ctxIdxMap