fix missuse of system environment variable

fix missuse of system environment variable