fix authentication error