Removal of debug code and gtm bug fix

1. Removed all sets to my personal global
2. Removed call to EWD function redundant in new version
3. Fix for bug that only appeared in Cache