fix finalize video problem