fix a case
add the missing is_thread function