Fixed a bug in the sequence example as well as the slideshow example.