fix bug about saving video file