Fixed an ArrayOutofBoundError, but is facing another occured.