Fixes a bug in the _do_delete for OneToOne relationships