diff --git a/kfet/templates/kfet/history.html b/kfet/templates/kfet/history.html
index 091b4f2f..bc12effa 100644
--- a/kfet/templates/kfet/history.html
+++ b/kfet/templates/kfet/history.html
@@ -142,9 +142,10 @@ $(document).ready(function() {
selected: function(e, ui) {
$(ui.selected).each(function() {
if ($(this).hasClass('opegroup')) {
- var opegroup = $(this).data('opegroup');
+ var type = $(this).data('type');
+ var id = $(this).data('id');
$(this).siblings('.ope').filter(function() {
- return $(this).data('opegroup') == opegroup
+ return $(this).data(type) == id
}).addClass('ui-selected');
}
});