revert the compare change for min max; fix the licensecheck; Can not reproduce the eecheck failure locally