fixing groovy template