Fixed code for webplayer