Fixed the term_thread_count