threads init fix