fix for dispose error in Spectrum Perspective