diff --git a/mseedpeek/mseedpeek.py b/mseedpeek/mseedpeek.py
index b86546a5c72e982fa40a136dff8875b417710926..126b6284884343409e4c712c7f2693c5505e29a3 100644
--- a/mseedpeek/mseedpeek.py
+++ b/mseedpeek/mseedpeek.py
@@ -156,7 +156,7 @@ from PySide6.QtWidgets import (QApplication, QWidget, QTabWidget,
                                QMessageBox, QProgressDialog, QTreeWidget,
                                QTreeWidgetItem)
 from PySide6.QtCore import (Qt, QObject, Signal, QThread, QTimer, QEventLoop)
-from PySide6.QtGui import QColor
+from PySide6.QtGui import QColor, QBrush
 
 from mseedpeek.libtrace import *
 from mseedpeek.mseedInfo import *
@@ -800,7 +800,6 @@ class MainWindow(QWidget):
             self.blktype_box.hide()
             self.blkinfo_box.hide()
             self.blk_vars_box.hide()
-            self.slider_box.hide()
         else:
             widget = self.jump_box.currentWidget()
             for child in widget.findChildren(QWidget):
@@ -1091,7 +1090,7 @@ class MainWindow(QWidget):
         self.slider_box.slider.blockSignals(True)
         self.slider_box.jump_menu.blockSignals(True)
         self.slider_box.slider.setTickPosition(
-            self.slider_box.slider.TicksBelow)
+            QSlider.TicksBelow)
         self.slider_box.slider.setRange(0, self.num_blocks - 1)
         i = 0
         self.slider_box.jump_menu.clear()
@@ -1312,24 +1311,24 @@ class MainWindow(QWidget):
 
     def select_keys(self):
         """
+        Display blocks from selected key
         """
 
         selectkey = self.unique_box.keys_menu.currentText().split(":")
         if selectkey[0] == "*":
             self.fill_unique()
             return
-        unique_item = QTreeWidgetItem()
-        line = []
         self.unique_box.unique_info_tree.clear()
         for key in self.unique_list:
             if selectkey == key.split(":")[1:]:
+                unique_item = QTreeWidgetItem()
+                line = []
                 for var in key.split(":"):
                     line.append(var)
                 for i in range(len(line)):
                     unique_item.setText(i, line[i])
-                    unique_item.setBackgroundColor(i, Qt.white)
+                    unique_item.setBackground(i, QBrush(Qt.white))
                 self.unique_box.unique_info_tree.addTopLevelItem(unique_item)
-                return
 
     def fill_unique(self):
         """
@@ -1362,7 +1361,7 @@ class MainWindow(QWidget):
             if c:
                 for i in range(len(line)):
                     unique_item.setText(i, line[i])
-                    unique_item.setBackgroundColor(i, Qt.cyan)
+                    unique_item.setBackground(i, QBrush(Qt.cyan))
             else:
                 for i in range(len(line)):
                     unique_item.setText(i, line[i])