fix init thread local