small fix for smoothing