relation bugfix