Fork : Fix regression for slideshow with loop option.