mirror_spectrum script bug fix

'implentation'