Fixed setting of global variable that was missed in last commit