debug concurrency problem