Fix bug in when no ledger entry line found