corrected error in thread_of