repair local variable in thread