Small fixes in repayments