fix bug defined to getenv