proper groovy evaluation fix