Bargaining in a changing environment