add some fixes in video functional