Fixed bug when deleting contact