Fix a bug for the anonymous user