fixed bug with wiDialog.