fixed poisoned mutex