diff --git a/lib/util/pig-hint.js b/lib/util/pig-hint.js
index <HASH>..<HASH> 100644
--- a/lib/util/pig-hint.js
+++ b/lib/util/pig-hint.js
@@ -29,7 +29,7 @@
     if (!context) var context = [];
     context.push(tprop);
     
-    completionList = getCompletions(token, context); 
+    var completionList = getCompletions(token, context); 
     completionList = completionList.sort();
     //prevent autocomplete for last word, instead show dropdown with one word
     if(completionList.length == 1) {
Add missing 'var' declaration.