diff --git a/Simulation/Aivika/Lattice/Generator.hs b/Simulation/Aivika/Lattice/Generator.hs
--- a/Simulation/Aivika/Lattice/Generator.hs
+++ b/Simulation/Aivika/Lattice/Generator.hs
@@ -69,7 +69,7 @@
     case tp of
       SimpleGenerator ->
         do let g = MWC.uniform <$>
-                   MWC.withSystemRandom (return :: MWC.GenIO -> IO MWC.GenIO)
+                   MWC.createSystemRandom
            g' <- liftIO g
            newRandomGenerator01 (liftIO g')
       SimpleGeneratorWithSeed x ->
diff --git a/Simulation/Aivika/Lattice/Internal/Lattice.hs b/Simulation/Aivika/Lattice/Internal/Lattice.hs
--- a/Simulation/Aivika/Lattice/Internal/Lattice.hs
+++ b/Simulation/Aivika/Lattice/Internal/Lattice.hs
@@ -32,7 +32,7 @@
              }
 
 -- | Create a new random lattice by the specified probability and size,
--- where the probabilty defines whether the interior child node derives
+-- where the probability defines whether the interior child node derives
 -- from the right parent.
 newRandomLatticeWithProb :: Double -> Int -> IO LIOLattice
 newRandomLatticeWithProb p m =
diff --git a/aivika-lattice.cabal b/aivika-lattice.cabal
--- a/aivika-lattice.cabal
+++ b/aivika-lattice.cabal
@@ -1,5 +1,5 @@
 name:            aivika-lattice
-version:         0.6
+version:         0.6.2
 synopsis:        Nested discrete event simulation module for the Aivika library using lattice
 description:
     This experimental package extends the aivika-transformers [1] library and allows 
@@ -15,7 +15,7 @@
 author:          David Sorokin
 maintainer:      David Sorokin <david.sorokin@gmail.com>
 homepage:        http://www.aivikasoft.com
-cabal-version:   >= 1.6
+cabal-version:   >= 1.10
 build-type:      Simple
 tested-with:     GHC == 7.10.3
 
@@ -55,16 +55,18 @@
                      mtl >= 2.1.1,
                      containers >= 0.4.0.0,
                      random >= 1.0.0.3,
-                     mwc-random >= 0.13.0.0,
-                     aivika >= 5.4,
-                     aivika-transformers >= 5.4
+                     mwc-random >= 0.13.1.0,
+                     aivika >= 5.9.1,
+                     aivika-transformers >= 5.9.1
 
-    extensions:      TypeFamilies,
-                     MultiParamTypeClasses,
-                     FlexibleInstances,
-                     BangPatterns
+    other-extensions:   TypeFamilies,
+                        MultiParamTypeClasses,
+                        FlexibleInstances,
+                        BangPatterns
 
     ghc-options:     -O2
+
+    default-language:   Haskell2010
 
 source-repository head
 
