fixed deprecated mutex