lib: fix output on confirm cancel