fixed some relationship errors in models