Fix threads not join.