fix exploding ratios when smoothing