fixing issue in tokenizer