Fix anonymous users not being added to global scope.