fix arraylist first to array[0]