fixed -confirm bug