fix a protobuf usage bug