For ENG-5865, fix licensecheck