diff --git a/haskoin-store.cabal b/haskoin-store.cabal
--- a/haskoin-store.cabal
+++ b/haskoin-store.cabal
@@ -5,7 +5,7 @@
 -- see: https://github.com/sol/hpack
 
 name:           haskoin-store
-version:        0.40.15
+version:        0.40.16
 synopsis:       Storage and index for Bitcoin and Bitcoin Cash
 description:    Please see the README on GitHub at <https://github.com/haskoin/haskoin-store#readme>
 category:       Bitcoin, Finance, Network
diff --git a/src/Haskoin/Store/Cache.hs b/src/Haskoin/Store/Cache.hs
--- a/src/Haskoin/Store/Cache.hs
+++ b/src/Haskoin/Store/Cache.hs
@@ -675,15 +675,15 @@
 importBlockC bh =
     withLockForever $
     cacheGetHead >>= \case
-    Nothing -> return ()
-    Just cb ->
-        asks cacheChain >>= \ch ->
-        chainGetBlock bh ch >>= \case
-        Nothing -> return ()
-        Just bn ->
-            if prevBlock (nodeHeader bn) == cb
-            then go
-            else return ()
+        Nothing -> go
+        Just cb ->
+            asks cacheChain >>= \ch ->
+            chainGetBlock bh ch >>= \case
+                Nothing -> return ()
+                Just bn ->
+                    if prevBlock (nodeHeader bn) == cb
+                    then go
+                    else return ()
   where
     go = lift (getBlock bh) >>= \case
         Just bd -> do
