fixed groovy2-related bug