License check fixed