Fixed a bug in association of a RIN with tho models.