Fixed creating subcategories.