Fix problem deleting contact categories.