Fix an issue with anonymous users.