Fix tuplet and rest deletion