fix crash on close tab when ledger lines in the score
possibly fix crash on closing score