Incorrect mutex validation fixed