fixed bug with no changing environment