bug fix: flicker at the last frame of a section.