Fixed relationships

Fixed the relationships that were messed up before.