[wip] Bug in ledger retry.