fix auth crash