fix ArrayIndexOutOfBoundsException for index 0