improve creation of subcategory - fix removal of any category