fix contact lookup issues