fixes selecting correct pending loan to cancel