diff --git a/Network/Xmpp/Extras/MUC.hs b/Network/Xmpp/Extras/MUC.hs
--- a/Network/Xmpp/Extras/MUC.hs
+++ b/Network/Xmpp/Extras/MUC.hs
@@ -40,8 +40,8 @@
 joinMUC :: Jid -> Maybe MUCHistoryReq -> Session -> IO (Either XmppFailure ())
 joinMUC jid mhr = sendPresence ((presTo presence jid) { presencePayload = [Element "x" [("xmlns", [ContentText "http://jabber.org/protocol/muc"])] $ maybe [] (\hr -> [
 		NodeElement $ Element "history" (
-			(elementify "maxchars" show $ mhrSeconds hr) ++
-			(elementify "maxstanzas" show $ mhrSeconds hr) ++
+			(elementify "maxchars" show $ mhrMaxChars hr) ++
+			(elementify "maxstanzas" show $ mhrMaxStanzas hr) ++
 			(elementify "seconds" show $ mhrSeconds hr) ++
 			(elementify "since" toDateTime $ mhrSince hr)
 		) []]) mhr
diff --git a/pontarius-xmpp-extras.cabal b/pontarius-xmpp-extras.cabal
--- a/pontarius-xmpp-extras.cabal
+++ b/pontarius-xmpp-extras.cabal
@@ -1,5 +1,5 @@
 name:                pontarius-xmpp-extras
-version:             0.1.0.4
+version:             0.1.0.5
 synopsis:            XEPs implementation on top of pontarius-xmpp
 -- description:
 license:             OtherLicense
@@ -18,7 +18,7 @@
 Source-repository this
   type:              git
   location:          https://github.com/l29ah/pontarius-xmpp-extras.git
-  tag:               0.1.0.4
+  tag:               0.1.0.5
 
 library
   exposed-modules:
