Fixed scoreToPart bug w.r.t rests