fixed the environment variable loading problem