diff --git a/Main.hs b/Main.hs
--- a/Main.hs
+++ b/Main.hs
@@ -13,13 +13,10 @@
 
 stripVersionRestrictions :: GenericPackageDescription -> GenericPackageDescription
 stripVersionRestrictions pkg = pkg { condLibrary = fmap relaxLibraryTree (condLibrary pkg)
-                                   , condExecutables = map relaxTree (condExecutables pkg)
-                                   , condTestSuites = map relaxTree (condTestSuites pkg)
+                                   , condExecutables = map (fmap relaxExeTree) (condExecutables pkg)
+                                   , condTestSuites = map (fmap relaxTestTree) (condTestSuites pkg)
                                    }
   where
-    relaxTree :: (t, CondTree v [Dependency] a) -> (t, CondTree v [Dependency] a)
-    relaxTree (string,condTree) = (string, relaxTreeConstraints condTree)
-
     relaxTreeConstraints :: CondTree v [Dependency] a -> CondTree v [Dependency] a
     relaxTreeConstraints ct = ct { condTreeConstraints = map relax (condTreeConstraints ct) }
 
diff --git a/jailbreak-cabal.cabal b/jailbreak-cabal.cabal
--- a/jailbreak-cabal.cabal
+++ b/jailbreak-cabal.cabal
@@ -1,5 +1,5 @@
 Name:                   jailbreak-cabal
-Version:                1.2
+Version:                1.3
 Synopsis:               Strip version restrictions from build dependencies in Cabal files.
 License:                BSD3
 License-file:           LICENSE
