fix auth crashes