correction bugs threads