On the stability of the spectral properties under commuting perturbations