diff --git a/src/contactmodel.cpp b/src/contactmodel.cpp
index 40ef288fc667cf182077ac4e8f90f53d8d388ed0..bc5ef10f1817c8a0ce492efbcc8253cc6c70b0c0 100644
--- a/src/contactmodel.cpp
+++ b/src/contactmodel.cpp
@@ -1170,11 +1170,11 @@ ContactModelPimpl::slotUserSearchEnded(const QString& accountId,
     }
     updateTemporaryMessage("");
     for (auto& resultInfo : result) {
-        if (contacts.find(resultInfo.value("jamiId")) != contacts.end()) {
+        if (contacts.find(resultInfo.value("id")) != contacts.end()) {
             continue;
         }
         profile::Info profileInfo;
-        profileInfo.uri = resultInfo.value("jamiId");
+        profileInfo.uri = resultInfo.value("id");
         profileInfo.type = profile::Type::TEMPORARY;
         profileInfo.avatar = resultInfo.value("profilePicture");
         profileInfo.alias = resultInfo.value("firstName") + " " + resultInfo.value("lastName");