Fixed logic on wavelength button enablement