Fixed bug in video playback