fix negotiation