Fix smoothing formula