fix concurrency problem in settling. close #14