fix env variable issue