Update client's environment when it is changed.