diff --git a/CHANGES b/CHANGES
--- a/CHANGES
+++ b/CHANGES
@@ -78,3 +78,6 @@
 
 0.2.2.10:
 		remove previous change
+
+0.2.2.11:
+		fixed bug in surrogate data sampling
diff --git a/hstatistics.cabal b/hstatistics.cabal
--- a/hstatistics.cabal
+++ b/hstatistics.cabal
@@ -1,5 +1,5 @@
 Name:               hstatistics
-Version:            0.2.2.10
+Version:            0.2.2.11
 License:            BSD3
 License-file:       LICENSE
 Copyright:          (c) A.V.H. McPhail 2010, 2011
diff --git a/lib/Numeric/Statistics/Surrogate.hs b/lib/Numeric/Statistics/Surrogate.hs
--- a/lib/Numeric/Statistics/Surrogate.hs
+++ b/lib/Numeric/Statistics/Surrogate.hs
@@ -43,7 +43,7 @@
 surrogate' _ 0 _ _ = []
 surrogate' g n f d = let (g',g'') = split g
                          d' = permute_data g' d
-                     in (f d) : (surrogate' g'' (n-1) f d)
+                     in (f d) : (surrogate' g'' (n-1) f d')
 
 randomList :: StdGen -> Int -> [Int]
 randomList _ 0 = []
