fix thread start bug