bug in repay