Tick where to place the newly added rests was wrong.