Fixed iterator on arraylist