Fix confirm api