diff --git a/sohstationviewer/view/search_message/search_message_dialog.py b/sohstationviewer/view/search_message/search_message_dialog.py
index 3de7a0f72a3c34c9fec4385ff593043f8e0458fc..504ef85c42519aa828302757da5d203004a909ec 100644
--- a/sohstationviewer/view/search_message/search_message_dialog.py
+++ b/sohstationviewer/view/search_message/search_message_dialog.py
@@ -529,10 +529,10 @@ class SearchMessageDialog(QtWidgets.QWidget):
         )
         # select all rows according to log_indexes
         for idx in log_indexes:
-            self.current_table.selectRow(idx)
+            self.current_table.selectRow(idx + 1)
         # scroll to the first index and place the row at top of the table
         self.current_table.scrollToItem(
-            self.current_table.item(log_indexes[0], 1),
+            self.current_table.item(log_indexes[0] + 1, 1),
             QAbstractItemView.ScrollHint.PositionAtTop
         )
         # raise the message dialog on top of others