Fixed license check error