Fixing confirm logic when algo change Done