Fix double wavelength compile error