fig bug in repayment