fixed bugs in normalizer and tokenizer