fix for GRAILS-10920 "Config gets executed multiple times"