fixed bug when setting environment config