bugfix license_check