fix smooth interpolation