Fix bug preventing UpdateGlobals() from being called