diff --git a/crf-chain2-tiers.cabal b/crf-chain2-tiers.cabal
--- a/crf-chain2-tiers.cabal
+++ b/crf-chain2-tiers.cabal
@@ -1,5 +1,5 @@
 name:               crf-chain2-tiers
-version:            0.2.3
+version:            0.2.4
 synopsis:           Second-order, tiered, constrained, linear conditional random fields
 description:
     The library provides implementation of the second-order, linear
@@ -31,7 +31,7 @@
       , monad-codec             >= 0.2          && < 0.3
       , data-lens               >= 2.10.4       && < 2.11
       , comonad                 >= 4.0          && < 4.3
-      , logfloat                >= 0.12.1       && < 0.13
+      , logfloat                >= 0.12.1       && < 0.14
       , parallel
       , sgd                     >= 0.3.2        && < 0.4
       , vector-th-unbox         >= 0.2.1        && < 0.3
diff --git a/src/Data/CRF/Chain2/Tiers/Model.hs b/src/Data/CRF/Chain2/Tiers/Model.hs
--- a/src/Data/CRF/Chain2/Tiers/Model.hs
+++ b/src/Data/CRF/Chain2/Tiers/Model.hs
@@ -304,7 +304,7 @@
 phi :: Model -> Feat -> L.LogFloat
 phi Model{..} ft = case featIndex ft featMap of
     Just ix -> L.logToLogFloat (values U.! unFeatIx ix)
-    Nothing -> L.logToLogFloat (0 :: Float)
+    Nothing -> L.logToLogFloat (0 :: Double)
 {-# INLINE phi #-}
 
 
