Fix category deletion.