XEM Code Bugfix for tvcache