Try to fix ArrayIndexOutOfBoundsException