cleaned up 'undefiend' returned by autocomplete