Fix issue in license activation check