fix protobuf expansion