some fixes in video functional