client: fix renegotiation