Fix The bug in createCategory, Now can save subcategories with no problem