Solved bug ArrayIndexOutOfBound