Fixing bug in video buffering causing it to load forever