modify the code caused by protobuf files