Fix Ledger bug