Fixed accidentals off bug and optimized draw Ledger line func call