[OE-4452] fixed foreign key violation