fixed concurrency issue for offline