fix for a has-many :through scenario