fixed bug in laser spectra