Fixed all the model relationships.