fix license handling