Fixed bug which caused ledger errors to ignore ledger permanently.