Fixed variable scope.