diff --git a/process/Sql_lib/process.js b/process/Sql_lib/process.js
index 93cf3bee053edf0291c9bde4df05e8199d3c7516..7b28c6db4f275a682e5ad5311c8bcfa953c070a4 100644
--- a/process/Sql_lib/process.js
+++ b/process/Sql_lib/process.js
@@ -4068,7 +4068,7 @@ SqlUtils.replaceConditionTemplate = function(pCondition, pPlaceholder, pReplacem
     ---------------------
     */
     //use replaceAll because it's faster and supports negative lookbehinds
-    replacements = {};
+    var replacements = {};
     //manually readd the replaced backslashes by using a group reference, because they a part of the match and therefore replaced by "replaceAll"
     //since the field COULD contain already a group reference (I think this is extremely uncommon; 
     //probably that never happens but better stay save): escape that references within the fieldname