fix bug in gradle plugin