Bugfix

Fixed bugs regarding ownership of relationship