fix the error before sign in