Protection against potential UI errors.