Fix license check