thread fix

thread fix