diff --git a/src/linkahead/transaction.cpp b/src/linkahead/transaction.cpp
index cf29ae2cc1b8e7f5ff74f95be338b8cfbf13f2c1..08d507f260c4e33b4349a6f0bf0f6af2e4779172 100644
--- a/src/linkahead/transaction.cpp
+++ b/src/linkahead/transaction.cpp
@@ -19,7 +19,7 @@
  */
 #include "linkahead/transaction.h"
 #include "caosdb/entity/v1/main.pb.h"                                 // for EntityTransac...
-#include "caosdb/entity/v1/main.pb.h"                                 // for TransactionRe...
+#include "caosdb/entity/v1/main.grpc.pb.h"                                 // for TransactionRe...
 #include "linkahead/file_transmission/download_request_handler.h"     // Download...
 #include "linkahead/file_transmission/file_reader.h"                  // for path
 #include "linkahead/file_transmission/register_file_upload_handler.h" // for RegisterFileUploadHandler
diff --git a/test/test_entity.cpp b/test/test_entity.cpp
index de9154c2c3732b0b8c34fc6d52a08cbc6cd6de33..c36090064ed0d5e5e158839f7f659807edfbb222 100644
--- a/test/test_entity.cpp
+++ b/test/test_entity.cpp
@@ -23,7 +23,7 @@
 #include "linkahead/data_type.h"       // for DataType, AtomicDat...
 #include "linkahead/entity.h"          // for Entity, Property
 #include "caosdb/entity/v1/main.pb.h"  // for EntityTransactionSe...
-#include "caosdb/entity/v1/main.pb.h"  // for IdResponse, Message
+#include "caosdb/entity/v1/main.grpc.pb.h"  // for IdResponse, Message
 #include "linkahead/message_code.h"    // for MessageCode, ENTITY...
 #include "linkahead/protobuf_helper.h" // for get_arena
 #include "linkahead/status_code.h"     // for StatusCode, FILE_DO...