bugfix: fixed wrong call for dialog.dismiss