Fix a bug due to renaming a env var.