Fixed Mutex bug