Fix incFrequency implementation in Term