Fixing auth error