Fixed var scope.