diff --git a/src/conversation_textview.py b/src/conversation_textview.py
index a9c948ea87881b484409fed5e0d11ba36f30b102..8c4554004e90b1a69e2fe2e54832753b0aecd93b 100644
--- a/src/conversation_textview.py
+++ b/src/conversation_textview.py
@@ -1085,7 +1085,6 @@ class ConversationTextview(gobject.GObject):
             special_text = otext[start:end]
             if start > index:
                 text_before_special_text = otext[index:start]
-                end_iter = buffer_.get_end_iter()
                 # we insert normal text
                 insert_tags_func(end_iter, text_before_special_text, *other_tags)
             index = end # update index