fix sub category handling