fix env setting