Fix relations.