fixed concurrency bug in importing