ArrayIndexOutOfBoundsException finally fixed.