Fix associations.