Fix editing and deleting contacts.