Fixed ArrayIndexOutOfBoundsBug #4352