Fixed an issue with global variable updates not getting applied.