fixed shared mutex issue