fixed mutex error