Wait for transform fix fix groovy

This is the groovy version of #34