fixed auth crash