Fixed a bug in the tag tokenizer