Fix Deletion of categories