fixed video saving bug