regression fix: global variables could not be accessed via script
regression fix: global variable access did not work