Fixed category deletion.