[FIX] delete category deletes all duplicates in the tree