[OE-3987] relation code bugfix