fix negotiation validation