fixed category deletion