diff --git a/Reliable/IO.hs b/Reliable/IO.hs
--- a/Reliable/IO.hs
+++ b/Reliable/IO.hs
@@ -434,7 +434,7 @@
 getAcks :: Endpoint -> IO [Word16]
 getAcks (Endpoint epPtr _) = alloca $ \numAcksPtr -> do
     acksPtr <- c'reliable_endpoint_get_acks epPtr numAcksPtr
-    numAcks <- peek acksPtr
+    numAcks <- peek numAcksPtr
     peekArray (fromIntegral numAcks) acksPtr
 
 -- | Clears the list of sequence numbers for the most recently ack'd packets.
diff --git a/reliable-io.cabal b/reliable-io.cabal
--- a/reliable-io.cabal
+++ b/reliable-io.cabal
@@ -1,6 +1,6 @@
 cabal-version:       >= 1.10
 name:                reliable-io
-version:             0.0.1
+version:             0.0.2
 synopsis:            Bindings to the low-level reliable.io library.
 description:         Bindings to the low-level reliable.io library, which come
                      in two flavors: c-level bindings and a high-level
