Fixed an error in removeContact