update relation bugfix