Fixed a bug with video playback