diff --git a/callwidget.cpp b/callwidget.cpp
index f001bdafaf07da50a595458814633e4012301f94..cfb9cdbe8e534b8f38626ec28293e267e204695a 100644
--- a/callwidget.cpp
+++ b/callwidget.cpp
@@ -626,6 +626,9 @@ void CallWidget::slotAccountChanged(int index)
                 auto convModel = LRCInstance::getCurrentConversationModel();
                 auto currentConversation = Utils::getConversationFromUid(selectedConvUid(),
                     *convModel);
+                if (currentConversation == convModel->allFilteredConversations().end()) {
+                    return;
+                }
                 if (contactId == contactModel.get()->getContact((*currentConversation).participants.at(0)).profileInfo.uri) {
                     ui->messageView->clear();
                     ui->messageView->printHistory(*convModel, currentConversation->interactions);