fix issue with duplicate has_many associations on save