Maybe java.lang.ArrayIndexOutOfBoundsException: -1 problem fixed