Fixed some relationship mistakes in domain class.