Bugfix for global variable id - which is sadly necessary