lab5 - fix category deletion