Fix for #61

For Grails 2.4.x compatibility
Merge pull request #62 from yellowsnow/patch-1

Fix for #61