fix threading mutex