Thread working fixed