diff --git a/Hledger/Interest.hs b/Hledger/Interest.hs
--- a/Hledger/Interest.hs
+++ b/Hledger/Interest.hs
@@ -89,7 +89,7 @@
           }
       pTarget = nullposting
           { paccount       = targetAcc
-          , pamount        = Mixed [ a { aquantity = (aquantity a * ratePerAnno) / fromInteger perDayScalar * fromInteger days } | a <- amounts bal ]
+          , pamount        = mixed [ a { aquantity = (aquantity a * ratePerAnno) / fromInteger perDayScalar * fromInteger days } | a <- amounts bal ]
           , ptype          = RegularPosting
           , ptransaction   = Just t
           }
diff --git a/Main.hs b/Main.hs
--- a/Main.hs
+++ b/Main.hs
@@ -91,7 +91,7 @@
   when (null (optTargetAcc opts)) (commandLineError "required --target option is missing\n")
   when (isNothing (optDCC opts)) (commandLineError "no day counting convention specified\n")
   when (isNothing (optRate opts)) (commandLineError "no interest rate specified\n")
-  let ledgerInputOptions = definputopts { ignore_assertions_ = optIgnoreAssertions opts }
+  let ledgerInputOptions = definputopts { balancingopts_ = (balancingopts_ definputopts) { ignore_assertions_ = optIgnoreAssertions opts } }
   jnl' <- readJournalFiles ledgerInputOptions (reverse (optInput opts)) >>= either fail return
   interestAcc <- case args of
                    []    -> commandLineError "required argument ACCOUNT is missing\n"
diff --git a/hledger-interest.cabal b/hledger-interest.cabal
--- a/hledger-interest.cabal
+++ b/hledger-interest.cabal
@@ -1,5 +1,5 @@
 Name:                   hledger-interest
-Version:                1.6.1
+Version:                1.6.2
 Synopsis:               computes interest for a given account
 License:                BSD3
 License-file:           LICENSE
@@ -119,7 +119,7 @@
 Executable hledger-interest
   default-language:     Haskell2010
   Main-is:              Main.hs
-  Build-depends:        base >= 3 && < 5, hledger-lib == 1.21.*, time, mtl, Cabal, Decimal, text
+  Build-depends:        base >= 3 && < 5, hledger-lib == 1.22.*, time, mtl, Cabal, Decimal, text
   other-modules:        Hledger.Interest
                         Hledger.Interest.DayCountConvention
                         Hledger.Interest.Rate
