fixed wavelength bug