Fixed a potential issue with video skipping