bugfix for Relation