diff --git a/process/Sql_lib/process.js b/process/Sql_lib/process.js
index 3039c1cf1cbd1468351cd93493862d3d91fbd47c..5fbe817ea448158ba07ffaf3f5011d410a149a45 100644
--- a/process/Sql_lib/process.js
+++ b/process/Sql_lib/process.js
@@ -4048,7 +4048,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