Fix listening issue. close #772