Corrected an issue where preferred protocol was always chosen in stream
negotiation