Fix for older groovy version