fix for delete undo of categories