Fix for nested scope.