Fixed the StartThread order