Fix thread local declaration
Fix thread local declaration