little fix at getenv