Fixing bug with variable scope.
1.3.1