final bugfix for exporting docsim results to protobuf