Fix to the smoothing