fix thread bug