bug fix segmentention fault.
range of out error.