fixed generation of too many IRI fields.