fix auth errors