diff --git a/frontend-js/src/main/js/gui/admin/ChooseValidatorsDialog.js b/frontend-js/src/main/js/gui/admin/ChooseValidatorsDialog.js
index 2138412ac457978265fd9b309e9634548bb44d2e..5dba50c8917f3a5bcab685c50653529ae7a1a32b 100644
--- a/frontend-js/src/main/js/gui/admin/ChooseValidatorsDialog.js
+++ b/frontend-js/src/main/js/gui/admin/ChooseValidatorsDialog.js
@@ -273,9 +273,9 @@ ChooseValidatorsDialog.prototype.createElementTree = function (configuration) {
     }
   };
 
-  var i;
+  var i, type;
   for (i = 0; i < elementTypes.length; i++) {
-    var type = elementTypes[i];
+    type = elementTypes[i];
     var name = type.className;
     if (name.indexOf(".") > 0) {
       name = name.substr(name.lastIndexOf(".") + 1);
@@ -288,7 +288,7 @@ ChooseValidatorsDialog.prototype.createElementTree = function (configuration) {
   }
 
   for (i = 0; i < reactionTypes.length; i++) {
-    var type = reactionTypes[i];
+    type = reactionTypes[i];
     treeNodes[type.className] = {
       text: type.name,
       data: type,