Fix confirm dialog in nested modals.