Minor bugfix (global variable)