fixed bug in text aggregator writer with frequency