some fixes in video playback