Fix previous commit - get_protocol() now works correctly