bugfix - do_term
* don't use undef as a hash...