fixed error in findContactByName