fix bug about env