Changed term normalization in Document class.