ledger index fix