-Fixed a bug with deletes relation