fix some environment variables