Fix a crash at the end of the video.