Bargaining over an endogenous agenda