Fixed the bug in advancing to next video.