Oops, fix check for global variable.