fix bug in term_display