Fix deprecated confirm code.