Bugfix: added missing global statement