Relation bugfix

fixes #15