fixed some bugs, need to upgrade to grails 2.2