fix a2lix upgrade issue and clean category entity