fixed smoothing error