Fixing iteration over objects for abstract models