fix auth error issue