bug fix for groovy work