BUGFIX: Fixed issue with global variable.