Fixing bug: error when exiting wizard.