fixed some concurrency bugs