smooth_intensities bug fix