Fixed an error when selecting the scheme to use.