Fix xbmc crash problem