[OE-2688] fixed broken foreign key