diff --git a/src/common/stanza_session.py b/src/common/stanza_session.py
index d00bdf0b902f8c8eef5a37a54609db84846b1093..2dc4bf1517f1c17098f3e7c88846e1850e1acf6b 100644
--- a/src/common/stanza_session.py
+++ b/src/common/stanza_session.py
@@ -813,7 +813,7 @@ class EncryptedStanzaSession(ArchivingStanzaSession):
         # the offset of the group we chose (need it to match up with the dhhash)
         group_order = 0
         self.modp = int(form.getField('modp').getOptions()[group_order][1])
-        x.addChild(node=xmpp.DataField(name='modp', value=self.modp))
+        x.addChild(node=nbxmpp.DataField(name='modp', value=self.modp))
 
         g = dh.generators[self.modp]
         p = dh.primes[self.modp]