diff --git a/pdf-toolbox-viewer.cabal b/pdf-toolbox-viewer.cabal
--- a/pdf-toolbox-viewer.cabal
+++ b/pdf-toolbox-viewer.cabal
@@ -1,5 +1,5 @@
 name:                pdf-toolbox-viewer
-version:             0.0.3.3
+version:             0.0.4.0
 synopsis:            Simple pdf viewer
 description:         Proof of concept, only for debuging
 homepage:            https://github.com/Yuras/pdf-toolbox
@@ -34,5 +34,5 @@
                        io-streams,
                        cairo,
                        gtk,
-                       pdf-toolbox-document ==0.0.5.*,
-                       pdf-toolbox-content ==0.0.3.*
+                       pdf-toolbox-document ==0.0.6.*,
+                       pdf-toolbox-content ==0.0.4.*
diff --git a/viewer.hs b/viewer.hs
--- a/viewer.hs
+++ b/viewer.hs
@@ -284,7 +284,7 @@
 pdfSync mvar action = do
   mvar' <- newEmptyMVar
   putMVar mvar $ do
-    res <- (Right <$> action) `catchT` (return . Left)
+    res <- (Right <$> action) `catchE` (return . Left)
     liftIO $ putMVar mvar' res
     return False
   res <- takeMVar mvar'
