diff --git a/src/media/text.cpp b/src/media/text.cpp
index 57d940772902b10477bee3c8308e0eb2daa01817..a6453de4ccf90f45c9456081302f48a9a3b9bc5b 100644
--- a/src/media/text.cpp
+++ b/src/media/text.cpp
@@ -155,7 +155,7 @@ void IMConversationManagerPrivate::newMessage(const QString& callId, const QStri
       iter.next();
 
       if (iter.key().left(profileSize) == RingMimes::PROFILE_VCF) {
-          const auto& args = VCardUtils::parseMimeAttributes(iter.key());
+          auto args = VCardUtils::parseMimeAttributes(iter.key());
           if (auto person = ProfileChunk::addChunk(args, iter.value(), call->peerContactMethod())) {
               PersonModel::instance().addPeerProfile(person);
           }