minor bug fix
fixed bug with getenv