fix thread option