fixed index out of range error on set_confirm() and
update_payment_sched()