fix error reading wavelength scale from header data (only seems to affect data taken with old detector)