Fix bug for anonymous user