Fix protocol definitions