Fixes some bugs in vlcplayer