diff --git a/JsContracts.cabal b/JsContracts.cabal
--- a/JsContracts.cabal
+++ b/JsContracts.cabal
@@ -1,5 +1,5 @@
 Name:           JsContracts
-Version:        0.5
+Version:        0.5.1
 Cabal-Version:	>= 1.2.3
 Copyright:      Copyright (c) 2008-2009 Arjun Guha and Spiridon Eliopoulos
 License:        BSD3
diff --git a/data/contracts.js b/data/contracts.js
--- a/data/contracts.js
+++ b/data/contracts.js
@@ -262,7 +262,7 @@
 contracts.guard = function(ctc,val,pos,neg,loc) {
   if (ctc.isHigherOrder) {
     if (typeof(val) != "function") {
-      contracts.blame(pos, "a function", proc, "not a function","guard"); 
+      contracts.blame(pos, "a function", ctc, "not a function","guard"); 
     }
     else {
       var deferredNeg = { value: "not called" };
