diff --git a/src/pe/ccd/HashGridsDataHandling.h b/src/pe/ccd/HashGridsDataHandling.h
index 38d1d1b4f54b6c41db2d94fdc5e6f396a6704280..43aa61863d15d97bef36c1355721ae9b070698a3 100644
--- a/src/pe/ccd/HashGridsDataHandling.h
+++ b/src/pe/ccd/HashGridsDataHandling.h
@@ -44,7 +44,7 @@ private:
 };
 
 inline
-shared_ptr<HashGridsDataHandling> createHashGridsDataHandling(shared_ptr<BodyStorage>& globalStorage,const BlockDataID& storageID)
+shared_ptr<HashGridsDataHandling> createHashGridsDataHandling(const shared_ptr<BodyStorage>& globalStorage,const BlockDataID& storageID)
 {
    return make_shared<HashGridsDataHandling>( globalStorage, storageID );
 }