diff --git a/daemon/Daemon.cpp b/daemon/Daemon.cpp
index 2a70dd1f..84f197fb 100644
--- a/daemon/Daemon.cpp
+++ b/daemon/Daemon.cpp
@@ -179,7 +179,7 @@ namespace util
uint16_t transitTunnels; i2p::config::GetOption("limits.transittunnels", transitTunnels);
if (isFloodfill && i2p::config::IsDefault ("limits.transittunnels"))
transitTunnels *= 2; // double default number of transit tunnels for floodfill
- SetMaxNumTransitTunnels (transitTunnels);
+ i2p::tunnel::tunnels.SetMaxNumTransitTunnels (transitTunnels);
/* this section also honors 'floodfill' flag, if set above */
std::string bandwidth; i2p::config::GetOption("bandwidth", bandwidth);
diff --git a/daemon/HTTPServer.cpp b/daemon/HTTPServer.cpp
index e42efb36..3d5ff1a0 100644
--- a/daemon/HTTPServer.cpp
+++ b/daemon/HTTPServer.cpp
@@ -754,7 +754,7 @@ namespace http {
s << " info \r\n";
s << " debug
\r\n
\r\n";
- uint16_t maxTunnels = GetMaxNumTransitTunnels ();
+ uint16_t maxTunnels = i2p::tunnel::tunnels.GetMaxNumTransitTunnels ();
s << "" << tr("Transit tunnels limit") << "
\r\n";
s << "