diff --git a/CHANGES b/CHANGES
--- a/CHANGES
+++ b/CHANGES
@@ -18,3 +18,6 @@
 		changed discrete_mm_dist to discrete_mp_dist
 		added Binary instances of Histogram(2D)
 		added Histogram2D.fromMatrix
+
+0.1.1.5:
+		fixed y limits in Histogram2D.fromLimitsIO
diff --git a/hmatrix-gsl-stats.cabal b/hmatrix-gsl-stats.cabal
--- a/hmatrix-gsl-stats.cabal
+++ b/hmatrix-gsl-stats.cabal
@@ -1,5 +1,5 @@
 Name:               hmatrix-gsl-stats
-Version:            0.1.1.4
+Version:            0.1.1.5
 License:            GPL
 License-file:       LICENSE
 Copyright:          (c) A.V.H. McPhail 2010
@@ -9,7 +9,7 @@
 Homepage:           http://code.haskell.org/hmatrix-gsl-stats
 Synopsis:           GSL Statistics interface
 Description:        Purely functional interface for statistics based on hmatrix and GSL
-Category:           Math
+Category:           Math, Statistics
 tested-with:        GHC ==6.12.1
 
 cabal-version:      >=1.2
diff --git a/lib/Numeric/GSL/Histogram2D.hs b/lib/Numeric/GSL/Histogram2D.hs
--- a/lib/Numeric/GSL/Histogram2D.hs
+++ b/lib/Numeric/GSL/Histogram2D.hs
@@ -131,7 +131,7 @@
            -> (Double,Double) -- ^ xmin, xmax
            -> (Double,Double) -- ^ ymin, ymax
            -> IO Histogram2D
-fromLimitsIO nx ny (lx,ux) (uy,ly) = do
+fromLimitsIO nx ny (lx,ux) (ly,uy) = do
                                    h <- histogram2d_new (fromIntegral nx) (fromIntegral ny)
                                    h' <- newForeignPtr histogram2d_free h
                                    check "set_ranges_uniform" $ withForeignPtr h' (\f -> histogram2d_set_ranges_uniform f lx ux ly uy)
@@ -208,7 +208,7 @@
                        y' = map (\(x1,x2) -> (x1 + x2)/2) $ vectorToTuples y
                        w' = toList $ flatten w
                        xy = concat $ map (\j -> zip x' (replicate (length x') j)) y'
-                       in addListWeighted (emptyRanges x y) $ zipWith (\(x,y) d -> (x,y,d)) xy w'
+                       in addListWeighted (emptyRanges x y) $ zipWith (\(a,b) d -> (a,b,d)) xy w'
 
 -----------------------------------------------------------------------------
 
