Fixed categories upgrade issue.