Fix wizard

For #977.