Fix the bug of env var.