Fix bugs of repayment page