Fixed thread start bug