Fix invalid scope authentication error