Fixed license import bug in API