Fix smoothing threshold bug.