fixed thread joining