Fix bug in license code