correct a bug with anonymous user