Fix for detection of multiple protocols.