Fix use of temp object in tokenizer