fixed index in FreqDist.max