fix renegotiation on Android