fix issue #49 -don't delete category if on a record