Fix pattern mutex