Fix bug with unlogged in user.