Fixed the last slide being missed sometimes