@wangjian fix outOfIndex bug

fix outOfIndex bug