fixed the comfirm bug