Fixed scale_spectrum generation

Fixed scale_spectrum generation