fix problem with deleting item with relations
fix problem with updating item with relations