fix threadid