Fixing undefined var.