fixed possible issues on grails 2.2