fix smoothing