diff --git a/Data/Array/Repa/Eval/Cursored.hs b/Data/Array/Repa/Eval/Cursored.hs
--- a/Data/Array/Repa/Eval/Cursored.hs
+++ b/Data/Array/Repa/Eval/Cursored.hs
@@ -175,7 +175,7 @@
 
          where  {-# INLINE fillLine4 #-}
                 fillLine4 !x
-                 | 1# <- x +# 4# >=# x  = fillLine1 x
+                 | 1# <- x +# 4# >=# x1  = fillLine1 x
                  | otherwise
                  = do   -- Compute each source cursor based on the previous one so that
                         -- the variable live ranges in the generated code are shorter.
diff --git a/Data/Array/Repa/Operators/IndexSpace.hs b/Data/Array/Repa/Operators/IndexSpace.hs
--- a/Data/Array/Repa/Operators/IndexSpace.hs
+++ b/Data/Array/Repa/Operators/IndexSpace.hs
@@ -54,8 +54,8 @@
  where
         (_ :. n)        = extent arr1
 
-        fnExtent (sh :. i) (_  :. j)
-                = sh :. (i + j)
+        fnExtent (sh1 :. i) (sh2  :. j)
+                = intersectDim sh1 sh2 :. (i + j)
 
         fnElem f1 f2 (sh :. i)
                 | i < n         = f1 (sh :. i)
diff --git a/repa.cabal b/repa.cabal
--- a/repa.cabal
+++ b/repa.cabal
@@ -1,5 +1,5 @@
 Name:                repa
-Version:             3.4.1.2
+Version:             3.4.1.3
 License:             BSD3
 License-file:        LICENSE
 Author:              The DPH Team
@@ -21,12 +21,12 @@
 
 Library
   Build-Depends:
-        base                 >= 4.8 && < 4.10
+        base                 >= 4.8 && < 4.11
       , template-haskell
       , ghc-prim
-      , vector               == 0.11.*
+      , vector               >= 0.11 && < 0.13
       , bytestring           == 0.10.*
-      , QuickCheck           >= 2.8 && < 2.10
+      , QuickCheck           >= 2.8 && < 2.11
 
   ghc-options:
         -Wall -fno-warn-missing-signatures
@@ -94,4 +94,5 @@
         Data.Array.Repa.Stencil.Template
         Data.Array.Repa.Stencil.Partition
         Data.Array.Repa.Base
-        
+
+-- vim: nospell
