Adding default settings to prevent a bug when immediately manually advancing

This PR sets two default variables that are currently undefined. It causes a problem with trying to advance manually from the first slide to the last slide.