fixing auth error