XEM Code Bugfix for tvcache
More XEM Bugfixes