Fix warning in doGetContacts