fix RWMutex bug