fix a small problem in env setting