I fixed index out of range