diff --git a/gajim/common/connection.py b/gajim/common/connection.py
index 735df0d6a41a451ab34c541580b66413dafe39fb..9db930192ad0c9cbf7296642c8fb75b152557c63 100644
--- a/gajim/common/connection.py
+++ b/gajim/common/connection.py
@@ -1023,7 +1023,7 @@ class Connection(CommonConnection, ConnectionHandlers):
         if self._proxy and self._proxy['type'] == 'bosh':
             # with BOSH, we can't do TLS negotiation with <starttls>, we do only "plain"
             # connection and TLS with handshake right after TCP connecting ("ssl")
-            scheme = nbxmpp.transports_nb.urisplit(self._proxy['bosh_uri'])[0]
+            scheme = nbxmpp.transports.urisplit(self._proxy['bosh_uri'])[0]
             if scheme == 'https':
                 connection_types = ['ssl']
             else:
diff --git a/gajim/common/zeroconf/client_zeroconf.py b/gajim/common/zeroconf/client_zeroconf.py
index 945e079d861f14a66fe6cb49147878e374830deb..ac74030473738985bfeb8db6f98ac822d6179262 100644
--- a/gajim/common/zeroconf/client_zeroconf.py
+++ b/gajim/common/zeroconf/client_zeroconf.py
@@ -31,9 +31,9 @@ from nbxmpp import simplexml
 from nbxmpp.structs import StanzaHandler
 from nbxmpp.plugin import PlugIn
 from nbxmpp.idlequeue import IdleObject
-from nbxmpp.transports_nb import DATA_RECEIVED
-from nbxmpp.transports_nb import DATA_SENT
-from nbxmpp.transports_nb import DATA_ERROR
+from nbxmpp.transports import DATA_RECEIVED
+from nbxmpp.transports import DATA_SENT
+from nbxmpp.transports import DATA_ERROR
 
 from gajim.common import app
 from gajim.common.zeroconf import zeroconf
diff --git a/gajim/common/zeroconf/connection_zeroconf.py b/gajim/common/zeroconf/connection_zeroconf.py
index 70f02079ce49a21fa2cc6835c7e3754b97e1205d..8a780740bd4640ce304e166df6ace55baa4b579b 100644
--- a/gajim/common/zeroconf/connection_zeroconf.py
+++ b/gajim/common/zeroconf/connection_zeroconf.py
@@ -465,7 +465,7 @@ class ConnectionZeroconf(CommonConnection, ConnectionHandlersZeroconf):
     def _event_dispatcher(self, realm, event, data):
         CommonConnection._event_dispatcher(self, realm, event, data)
         if realm == '':
-            if event == nbxmpp.transports_nb.DATA_ERROR:
+            if event == nbxmpp.transports.DATA_ERROR:
                 thread_id = data[1]
                 frm = data[0]
                 session = self.get_or_create_session(frm, thread_id)