Fix authentication error