Fixed an issue with smoothing command