Fix relations of some models