fixed the auth issue