TUP-1820: fixed the dialog to popup twince.