fix thread type define