Fixed GroovyCastException