fixing confirm error