diff --git a/LICENSE b/LICENSE
--- a/LICENSE
+++ b/LICENSE
@@ -1,4 +1,4 @@
-Copyright (c) 2008-2013, Balazs Komuves
+Copyright (c) 2008-2016, Balazs Komuves
 All rights reserved.
 
 Redistribution and use in source and binary forms, with or without
diff --git a/System/MacOSX/CoreMIDI.hs b/System/MacOSX/CoreMIDI.hs
--- a/System/MacOSX/CoreMIDI.hs
+++ b/System/MacOSX/CoreMIDI.hs
@@ -602,7 +602,7 @@
 -- |Enumaretes the MIDI destinations present.
 enumerateDestinations :: IO [Destination]
 enumerateDestinations = do
-  n <- c_MIDIGetNumberOfSources
+  n <- c_MIDIGetNumberOfDestinations
   if n > 0  -- n is unsigned => (n-1)=(2^32)-1  !! 
     then forM [0..n-1] $ \i -> liftM Destination (c_MIDIGetDestination i)
     else return []
diff --git a/hmidi.cabal b/hmidi.cabal
--- a/hmidi.cabal
+++ b/hmidi.cabal
@@ -1,6 +1,6 @@
 
 Name:                hmidi
-Version:             0.2.2.0
+Version:             0.2.2.1
 Synopsis:            Binding to the OS level MIDI services
 Description:         Partial implementation of the MIDI 1.0 standard to communicate 
                      with physical or virtual MIDI devices, eg. MIDI keyboards. 
@@ -16,7 +16,7 @@
 Homepage:            http://code.haskell.org/~bkomuves/
 Stability:           Experimental
 Category:            Sound, System
-Tested-With:         GHC == 7.4.2
+Tested-With:         GHC == 7.8.3
 Cabal-Version:       >= 1.6
 Build-Type:          Simple
 
