Change some logic in repay window