Fixed bug related to named entity length.