fixed a bug smoothing with Gaussian filter