Fixed an issue with deleting a contact