Fixed bug with grails