fixed issue where associations became duplicates