fix small bugs in adding Subcategory