fixed problem when there is no qfunction defined in wizard