fixed mutex gap issue