Fix some model relationships.