Fixing license check