Fixed has_many_and_belongs_to relationships.