fixed bug in calculating cutoff in getSumStat