Fix protobuf types