category deletion bugfix