Fix wizard

Hi @timlinux
By this PR, it almost fix all bugs in wizard, except #1010 (which is also a bug in keywords dialog).

And the @Charlotte-Morgan can start to test again after this PR is merged.