frequency_to_wavelength bug fixes