fixed anonymous user crash