fix a2lix upgrade issue and clean subcategory entity