fix get env variable error