Fix the video recording bug.