TUP-2293: fixed one problem when close login dialog.