fix a bug with the wizard.