Fix confirmation logic