make sure the last category used still exists