fix sentence tokenization bug