fixed a bug in the comfirm dialog