correction on ScopeVariables.java based on Linas comment