fixed bug for video playback