fixed mutex initializer
fixed num threads issue