Fix xbmc_pre and xbmc_post functions