Fix usage of environment config.