diff --git a/Rich/RichPhotonCounting/src/RichPhotonCounter.cpp b/Rich/RichPhotonCounting/src/RichPhotonCounter.cpp
index 2b01672dee9a6d24c7353d1edfc930df0fc9a0b6..3bfcd18731883df7f29bd2c2a256f8c4984a2676 100755
--- a/Rich/RichPhotonCounting/src/RichPhotonCounter.cpp
+++ b/Rich/RichPhotonCounting/src/RichPhotonCounter.cpp
@@ -26,7 +26,7 @@ using namespace Rich::Rec::MC;
 
 //-----------------------------------------------------------------------------
 
-DECLARE_ALGORITHM_FACTORY( PhotonCounter )
+DECLARE_COMPONENT_FACTORY( PhotonCounter )
 
 //=============================================================================
 // Standard constructor, initializes variables