Fix double => int wavelength parsing