Fix the wrong environment variable usage