fixing get last saved ledger