Fixed minor bugs after migration from earlier version of Grails

Initially, the project was created using Grails v.1.3.7. Then I migrated
to Grails v.2.3.7. In this commit I fixed all the realitve bugs appeared
after upgrading process.