Fix global variable "warning"