fix a bug for total_pay_fee