Fix gradle build bug