fixed language tokenizer threadsafe issues