Fixed the loop start and end parameters in sf2.