Fix authentication mode