Minor fixes
Optimize `text.frequency`