fix error-prone code in answering handling. close #1