GRAILS-10077 fix

http://jira.grails.org/browse/GRAILS-10077