fixed mutex usage