fix in embed video function