Fixed bugs in sub categories