Fixed reference to environment variable