fix env log issue