Fixed bug where confirm dialog was not shown.