Fixed crash due to imcopy error when flux-scaling science spectra