fix concurrency bug in beginning