Fix slideshow event bug