fixed mutex init bug