Fix crash when remove contact.