Spectrum resize bug fix